import { defineComponent, ref } from "vue";

export default defineComponent({
	props: {
		tableData: Object, // 确保类型匹配
	},
	setup(props, context) {
		return () => <el-pagination v-model:current-page={props.tableData.pager.pageIndex} v-model:page-size={props.tableData.pager.pageSize} page-sizes={props.tableData.pager.pagerLang||[10,20,50,100,200]} small="small"  layout="total, sizes, prev, pager, next, jumper" onSizeChange={props.tableData.pager.sizeChange} onCurrentChange={props.tableData.pager.pageIndexChange} total={props.tableData.pager.total}/>;
	},
});
